﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResumenVentaPopup.aspx.cs" Inherits="CROSLAND.WebApp.Impresion.ResumenVentaPopup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Resumen de Ventas diarias</title>
     <script type="text/javascript">
         function PrintReport() {
             var viewerReference = $find("rvGeneral");

             var stillonLoadState = viewerReference.get_isLoading();

             if (!stillonLoadState) {

                 var reportArea = viewerReference.get_reportAreaContentType();
                 if (reportArea == Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage) {
                     $find("rvGeneral").invokePrintDialog();
                 }
             }
         }
     </script>

     <style type="text/css">
 .content-report
{
	width:auto;	
	border:1px solid #DBDBDB;	
	height:600px;
	margin:0; 
	padding:0; 
	vertical-align:top;
	background-color:#fff;		
}

.cnt-print-ticket
{
	height:30px;
	width:100%;
	background-color:#5D7B9D;	
	line-height:30px;	
}

.cnt-print-ticket a
{
	color:#fff;	
	text-align:right;
	float:right;
	margin-right:15px;
	font-weight:bold;
	
}
.cnt-print-ticket a:hover
{	
	text-decoration:underline;
}
     
     </style>
</head>
<body style="top:0; left:0; margin:0">
    <form id="fReporte" runat="server">
  
        <asp:ToolkitScriptManager ID="smGeneral" runat="server" ScriptMode="Release">
        </asp:ToolkitScriptManager>

         <div class="content-report">
        <div class="cnt-print-ticket">
         <a href="JavaScript:PrintReport()">Imprimir</a>
      </div>

        <rsweb:ReportViewer ID="rvGeneral" runat="server" Width="100%"
               style="padding-top:0; margin-top:0; top:0; vertical-align:top" ShowToolBar="False"
               BackColor="#000FFF"  ShowFindControls="False" SplitterBackColor="White" 
               Height="780px" KeepSessionAlive="False" Font-Names="Verdana" Font-Size="8pt" 
               InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" 
               WaitMessageFont-Size="14pt" >
            <LocalReport ReportPath="Impresion\ResumenVentaReport.rdlc">
                 <DataSources>
                     <rsweb:ReportDataSource DataSourceId="odsGeneral" Name="dsResumenVenta" />
                 </DataSources>
            </LocalReport>
             
        </rsweb:ReportViewer>
   
    <asp:ObjectDataSource ID="odsGeneral" runat="server" 
        SelectMethod="obtenerImpresionResumenVenta" TypeName="CROSLAND.WebApp.Impresion.ResumenVentaPopup">
        <SelectParameters>
            
        </SelectParameters>
    </asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>

